// element plus的css命名空间，在vite.config.ts中执行替换，此处只做默认值使用
$elNamespace: 'el' !default;
// 引用的css命名空间，在vite.config.ts中执行替换，此处只做默认值使用
$appNamespace: 'app' !default;

$color-primay: #2681ff;
$color-success: #00b45a;
$color-warning: #ffaa32;
$color-danger: #f05537;
$color-error: #f05537;
$color-info: #3e3e3e;

@forward 'element-plus/theme-chalk/src/mixins/config.scss' with (
  $namespace: $elNamespace
);
// 重写浅色模式变量
@forward 'element-plus/theme-chalk/src/common/var.scss' as var-* with (
  $colors: (
    'primary': (
      'base': $color-primay,
    ),
    'success': (
      'base': $color-success,
    ),
    'warning': (
      'base': $color-warning,
    ),
    'danger': (
      'base': $color-danger,
    ),
    'error': (
      'base': $color-error,
    ),
    'info': (
      'base': $color-info,
    ),
  ),
  $text-color: (
    'primary': #333,
    'regular': #666,
    'secondary': #999,
    'placeholder': #b2b2b2,
  ),
  $bg-color: (
    'page': #f2f2f2,
    '': #ffffff,
  )
);

// 重写深色模式变量
@forward 'element-plus/theme-chalk/src/dark/var.scss' as dark-var-* with (
  $colors: (
    'primary': (
      'base': $color-primay,
    ),
    'success': (
      'base': $color-success,
    ),
    'warning': (
      'base': $color-warning,
    ),
    'danger': (
      'base': $color-danger,
    ),
    'error': (
      'base': $color-error,
    ),
    'info': (
      'base': $color-info,
    ),
  ),
  $text-color: (
    'primary': #d8ddeb,
    'regular': #b4bed6,
    'secondary': #93a1c2,
    'placeholder': #7687ad,
  ),
  $bg-color: (
    'page': #1a1a1a,
    '': #0d0d0d,
  )
);
